#include<stdio.h>
void main()
{
	int i, temp = 1, sum = 1;
	for (i = 2; i <= 8; i++)
	{
		temp = temp * 10 + i;
		sum += temp;
	}
	printf("sum=%d\n", sum);
}